import { Stream } from 'adajs';

class ScrollStream extends Stream {
    oncreated() {
        this.context.window.document.addEventListener('scroll', (e) => this.next(e), true);
    }
}

export default ScrollStream;